#include "x2lib.h"

namespace x2lib
{
#ifdef __X2LIB_CLOSE__
#ifdef __X2LIB_WIN32__
	x2lib::ExpFunc __g_ExpFunc__;
#endif
#endif

	bool Initialize(const char* pszDir, uint8_t nExpDays, DbgUtil::ELevel eLevel, const char arrFilter[5][64], DbgUtil::EOutBit uOutBits, void(*callback)(const char*))
	{
        // xktesla@2021-10-28 11:00:38 不再手动加载核心动态库，此功能以前是为了解决dll依赖问题导致被Loader加载失败，目前貌似已经不需要，共2处，此为第2处
#if 0 // def __X2LIB_WIN32__
		if (!__Load_Coredll__())
		{
			//MessageBoxA(NULL, "核心库初始化失败！", "严重错误", MB_OK|MB_ICONERROR);
			return false;
		}
#endif
		LOG_INIT(pszDir, nExpDays, eLevel, arrFilter, uOutBits, callback);

		LOG_PRINT_D("Initialize\n");
		return true;
	}

	void UnInitialize(){ LOG_PRINT_D("UnInitialize\n"); LOG_UNINIT(); };

}
